import java.util.Scanner;

    public class 四舍五入 {
        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            double d= scanner.nextDouble();

            //write your code here......
            int i = (int) d;
            if((d-i)>0.5){
                i=i+1;
            }
            System.out.println(i);
        }
    }

